package com.app.service;

import com.app.model.PrizeActivity;
import com.app.model.UserModel;
import com.app.vo.PrizeActivityVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;

/**
 * <p>
 * 转盘活动 服务类
 * </p>
 *
 * @author yoominic
 * @since 2023-12-16
 */
public interface IPrizeActivityService extends IService<PrizeActivity> {

    PrizeActivityVo activityList(Integer page, Integer limit, String activityName);

    Object getActivityList(Integer userId,String activityName) throws ParseException;

    /**
     * 抽奖活动
     *
     * @param userModel  用户模型
     * @param activityId 活动id
     * @return {@link Object}
     */
    Object raffle(UserModel userModel, Integer activityId);
}
